<!--{*
/**
* @author Bimal Poudel
* @copyright since 2006, Bimal Poudel
* @package Smarty Framework
* @support http://www.odesk.com/users/~~dd91d11caed0cdce
* @contact http://www.sanjaal.com
* @company Sanjaal Corps
*/

Created on: 2012-04-08 12:50:53 506
*}-->

<div class="search-form">
<form method="post" action="users-search-public.php" name="users-livesearch" id="users-livesearch-form">
	<div class="search-bar">
		<input type="text" name="search_users" value="{$search_users}" id="search_users" />
		<input type="submit" name="search-button" value="Search" class="submit" />
	</div>
	<div id="livesearch-results"></div>
</form>
</div>

{if $userss|count}
<table class="data" id="data-table">
<!--{* <caption>List of Users</caption> *}-->
<thead>
	<tr class="thead">
		<th>S.N.</th>
		<th>Details</th>
		
		<!--{* Column Headers *}-->
		<th><a href="?sort=full_name">Full Name</a></th>
		<th><a href="?sort=user_name">Name</a></th>
	</tr>
</thead>
<tbody>
<!-- users-details-public.php user.php -->
{section name='l' loop=$userss}
	<tr class="{cycle values='A,B'}">
		<td class="r">{$smarty.section.l.index_next+$pagination->begining_entry()}.</td>
		<td><a href="user.php?id={$userss[l].user_id}&amp;code={$userss[l].code}">Details</a></td>
		
		<!--{* Column Data *}-->
		<td>{$userss[l].full_name}</td>
		<td>{$userss[l].user_name}</td>
	</tr>
{sectionelse}
	<tr class="error">
		<td>-</td>
		<td>-</td>
		
		<!--{* Empty Cells *}-->
		<td>-</td>
		<td>-</td>
	</tr>
{/section}
</tbody>
</table>

<!-- paginator -->
{if $pagination->has_pages()}
<div class="paginator">
	<span class="introduction">Jump to page: </span>
	
	<!--{* wrap with <ul>...</ul> tags when using ulli=true parameter. *}-->
	<!--{* <ul> *}-->
	{paginate separator=' ' ulli=false source=$pagination}
	<!--{* <ul> *}-->
</div>
{/if}

{else}
	<div class="nodata">You do not have any records here.</div>
{/if}

<!-- End of users List (Public) -->